<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdhAjout.aspx.cs" Inherits="LAFDC.Web.UI.AdherentAjout" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Adherent: Edition</title>
    <link type="text/css" rel="stylesheet" href="skins/style.css"/>
	<!--link type="text/css" rel="stylesheet" href="skins/forms.css"/-->
    <script src="javascript/lafdc-helper.js" type="text/javascript"></script>
    <script src="javascript/lafdc-ajax.js" type="text/javascript"></script>
    <script src="javascript/lafdc-routage.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
            <div id="header">
            <table style="width: 100%">
                <tr style="height: 30px">
                    <td style="width: 3%" align="center">
                        <a href="./" target="_parent"><img alt="Accueil" border="0" src="images/home_16x16.PNG"  /></a></td>
                    <td style="width: 70%">
                        Fichier adh&eacute;rent: Ajout</td>
                    <td style="width: 20%" align="right">
                        <a href=""><img src="images/del.gif" border="0" alt="Annuler"/></a>
                    </td>
                </tr>
            </table>
            <hr />
    </div>
    <div>
        <table style="width: 814px">
            <tr style="background-color: #fbbbcc; height: 30px">
                <td colspan="5">
                    <b>ETAT CIVILE:</b></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 49px">
                </td>
                <td style="width: 160px">
                    Nom:</td>
                <td colspan="1" style="width: 281px">
                    <asp:TextBox ID="txtNOM" runat="server" ToolTip="Nom de l'adh&eacute;rent" ></asp:TextBox></td>
                <td style="width: 140px">
                    Pr&eacute;nom:</td>
                <td style="width: 230px">
                    <asp:TextBox ID="txtPRENOM" runat="server" ToolTip="Pr&eacute;nom de l'adh&eacute;rent"></asp:TextBox></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 49px">
                </td>
                <td style="width: 160px">
                    Intitul&eacute;:</td>
                <td style="width: 281px">
                    <asp:DropDownList ID="listIntitule" runat="server">
                        <asp:ListItem>Monsieur</asp:ListItem>
                        <asp:ListItem>Madame</asp:ListItem>
                        <asp:ListItem>Mademoiselle</asp:ListItem>
                    </asp:DropDownList></td>
                <td style="width: 140px">
                    Sit. famille:</td>
                <td style="width: 230px">
                    <asp:DropDownList ID="listSituationFamille" runat="server">
                        <asp:ListItem value="Celibataire">C&eacute;libataire</asp:ListItem>
                        <asp:ListItem value="Divorce(e)">Divorc&eacute;(e)</asp:ListItem>
                        <asp:ListItem value="Famille monoparentale">Famille monoparentale</asp:ListItem>
                        <asp:ListItem value="Marie(e)">Mari&eacute;(e)</asp:ListItem>
                        <asp:ListItem value="Separation de fait">S&eacute;paration de fait</asp:ListItem>                        
                        <asp:ListItem value="Union libre">Union libre</asp:ListItem>
                        <asp:ListItem value="Veuf(ve)">Veuf(ve)</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
                        <tr style="height: 30px">
                            <td style="width: 49px">
                            </td>
                <td style="width: 160px">
                    Pr&eacute;voyances:</td>
                <td style="width: 281px">
                    <asp:TextBox ID="txtPREV_ID" runat="server"></asp:TextBox></td>
                            <td style="width: 140px">
                                Date de Nais:</td>
                            <td style="width: 230px">
                                <asp:TextBox ID="txtANNIV" runat="server"></asp:TextBox></td>
            </tr>
            <tr style="background-color: #fbbbcc; height: 30px">
                <td colspan="5">
                    <strong>ADRESSE:</strong>
                </td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 49px">
                </td>
                <td style="width: 160px">
                    Adresse:</td>
                <td colspan="3">
                <asp:TextBox ID="txtAdr1" runat="server" Width="90%" OnTextChanged="txtAdr1_TextChanged"></asp:TextBox></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 49px">
                </td>
                <td style="width: 160px">
                    Adresse:</td>
                <td colspan="3">
                <asp:TextBox ID="txtAdr2" runat="server" Width="90%" OnTextChanged="txtAdr2_TextChanged"></asp:TextBox></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 49px">
                </td>
                <td style="width: 160px">
                    Code postal:</td>
                <td style="width: 281px">
                <asp:TextBox ID="txtCodePostal" runat="server" Width="90px" OnTextChanged="txtCodePostal_TextChanged"></asp:TextBox></td>
                <td style="width: 140px">
                Ville:</td>
                <td style="width: 230px">
                <asp:TextBox ID="txtVille" runat="server" OnTextChanged="txtVille_TextChanged"></asp:TextBox></td>
            </tr>
            <tr style="background-color: #fbbbcc; height: 30px">
                <td colspan="5">
                    <strong>STATUS:</strong></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 49px">
                </td>
                <td style="width: 160px">
                    AD:</td>
                <td style="width: 281px">
                    <asp:DropDownList ID="listASSO" runat="server" DataSourceID="SqlDataSource1" DataTextField="AD Name" DataValueField="AD_ID">
                    </asp:DropDownList>
                </td>
                <td style="width: 140px">
                Section:</td>
                <td style="width: 230px">
                    <asp:DropDownList ID="listSECTION" runat="server" DataSourceID="SqlDataSource2" DataTextField="SECTION ID" DataValueField="SECTION_NAME">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 49px">
                </td>
                <td style="width: 160px">
                    Adh&eacute;sion:</td>
                <td style="width: 281px">
                            <asp:TextBox ID="txtADHESION" runat="server"></asp:TextBox></td>
                <td style="width: 140px">
                    Retenu:</td>
                <td style="width: 230px">
                            <asp:CheckBox ID="chkRETENU" runat="server" /></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 49px">
                </td>
                <td style="width: 160px">
                    OTIG:</td>
                <td style="width: 281px">
                            <asp:TextBox ID="txtOTIG" runat="server" OnTextChanged="txtOTIG_TextChanged"></asp:TextBox></td>
                <td style="width: 140px">
                            Ind. retraite:</td>
                <td style="width: 230px">
                            <asp:TextBox ID="txtIRET" runat="server" OnTextChanged="txtIRET_TextChanged"></asp:TextBox></td>
            </tr>
            <tr style="height: 30px">
                <td style="width: 49px">
                </td>
                <td style="width: 160px">
                    Affectation:</td>
                <td style="width: 281px">
                            <asp:TextBox ID="txtAFFECTATION" runat="server" OnTextChanged="txtAFFECTATION_TextChanged"></asp:TextBox></td>
                <td style="width: 140px">
                    Routage du journal:</td>
                <td style="width: 230px">
                    <input type="checkbox" ID="chkROUTAGE" onclick="switchRoutage()"/> </td>
            </tr>

        </table>
        <br />
        <asp:Button ID="Submit" runat="server" Text="Enregistrer" OnClick="Submit_Click" height="26px"/>
        <asp:Label ID="lblSubmit" runat="server" height="21px" ForeColor="Blue"></asp:Label><br />
        <br />
        <asp:Label ID="lblDEBUG" runat="server"></asp:Label>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:LAFDCConnectionString %>"
                        SelectCommand="select * from ASSO"></asp:SqlDataSource>
    </div>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:LAFDCConnectionString %>"
                        SelectCommand="select * from SECTION order by [section id]">
                        <SelectParameters>
                        <asp:ControlParameter Name="AD" ControlID="listASSO" PropertyName="SelectedValue" />
                        </SelectParameters>
                    </asp:SqlDataSource>
    </form>
</body>
</html>
